<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script>
    var obj = {
      name:'张三',//属性
      getters:function () {//动态方法的获取
        return this.name
      },
      show:function () {
        alert(this.name);
      }
    }
    //public,private,proteted
    // obj.name="李四"
    obj.getters();

    //安全  属性
  </script>
</head>
<body>

</body>
</html>
